package com.example.waternetwork.api.supervision.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 水库调度方案成果过程信息
 * </p>
 */
@Getter
@Setter
@ToString
@TableName("supervision.data_reservoir_dispatch_plan")
@Schema(name = "DataReservoirDispatchPlan", description = "水库调度方案成果过程信息实体")
public class DataReservoirDispatchPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "调度方案ID")
    @TableField("plan_id")
    private Long planId;

    @Schema(description = "数据时间")
    @TableField("data_time")
    private LocalDateTime dataTime;

    @Schema(description = "入库流量（单位：m³/s）")
    @TableField("inflow")
    private BigDecimal inflow;

    @Schema(description = "出库流量（单位：m³/s）")
    @TableField("outflow")
    private BigDecimal outflow;

    @Schema(description = "水库水位（单位：m）")
    @TableField("level")
    private BigDecimal level;

    @Schema(description = "水库库容（单位：万m³）")
    @TableField("capacity")
    private BigDecimal capacity;

    @Schema(description = "水库集雨范围面雨量（单位：mm）")
    @TableField("rainfall")
    private BigDecimal rainfall;

    @Schema(description = "推送时间")
    @TableField("push_time")
    private LocalDateTime pushTime;
}
